fix for crosscompile