fix a few cross compiling issues