Fixing native library compilation on x86 vs x64