make evaluating the target platform a separate routine
run subroutines in a more sensible (and hopefully working) order
Probe build nativety instead of guessing it based on $CC