configure: use gcc --print-sysroot to behave correctly in cross builds.