crosscompilation fixes