fixed crosscompilation problems