corrected cross compilation detection