fix to broken cross-compiling checks in configure