Start supporting cross compiles better. Add a --disable-native-tests option
but also disable them automatically if cross compiling (as told by autoconf).
This addresses some of #585.