Do a better job of handling compilations before execution Reviewed-by: sspitsyn, amenkov
Reviewed-by: sspitsyn, erikj