skip some tests when cross-compiling

refactor the condition
Change logic to @Leont's "skip if cross-compiling and lacking make".