add an escape for when targethost is not defined but usecrosscompile is.