Improved cross-compiling support