cross-compile script improvements