cross-compilation fix