diff --git a/base/libs/native/nativedata/i386-Mac OS X/libnativedata.jnilib b/base/libs/native/nativedata/i386-Mac OS X/libnativedata.jnilib
index aa204c105c12cc44ae814f527fa372448f87d162..3271106a05e2e525c1196be5d4ac929dbc1a8c2c 100755
Binary files a/base/libs/native/nativedata/i386-Mac OS X/libnativedata.jnilib and b/base/libs/native/nativedata/i386-Mac OS X/libnativedata.jnilib differ
diff --git a/base/libs/native/nativedata/x86_64-Mac OS X/libnativedata.jnilib b/base/libs/native/nativedata/x86_64-Mac OS X/libnativedata.jnilib
index 60b6272cb47c07e6317d1f7b9382a9894649555a..1720db0f9441d2c79054e76dfa8024c74499f286 100755
Binary files a/base/libs/native/nativedata/x86_64-Mac OS X/libnativedata.jnilib and b/base/libs/native/nativedata/x86_64-Mac OS X/libnativedata.jnilib differ
diff --git a/base/libs/native/unix/i386-Mac OS X/libunix.jnilib b/base/libs/native/unix/i386-Mac OS X/libunix.jnilib
index f3196476d1945a48d1129301dd02d5572907ea59..d57021ba5f77eccff3f5b01ba3c6cae7992954df 100755
Binary files a/base/libs/native/unix/i386-Mac OS X/libunix.jnilib and b/base/libs/native/unix/i386-Mac OS X/libunix.jnilib differ
diff --git a/base/libs/native/unix/x86_64-Mac OS X/libunix.jnilib b/base/libs/native/unix/x86_64-Mac OS X/libunix.jnilib
index 97f1e02e2937f831dee038db47a6cbf83c65d122..bfaa2057c2769c7a8f9facd9b02130d9e761e4a6 100755
Binary files a/base/libs/native/unix/x86_64-Mac OS X/libunix.jnilib and b/base/libs/native/unix/x86_64-Mac OS X/libunix.jnilib differ
diff --git a/base/source/c/compile_macosx_x86_64.sh b/base/source/c/compile_macosx_x86_64.sh
index 06335b0650c794cd4ad102abb44dc9c8de527298..ec2d73640f9ccd5d0f48da7de977086722c2d9a3 100755
--- a/base/source/c/compile_macosx_x86_64.sh
+++ b/base/source/c/compile_macosx_x86_64.sh
@@ -1,6 +1,6 @@
 #! /bin/bash
 
-gcc -m64 -mmacosx-version-min=10.6 -dynamiclib -D__STAT=stat64 -D__LSTAT=lstat64 -O3 unix.c -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -o libunix.jnilib
+gcc -m64 -mmacosx-version-min=10.6 -dynamiclib -D_DARWIN_USE_64_BIT_INODE -O3 unix.c -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -o libunix.jnilib
 
 # MACHINE_BYTE_ORDER=1 corresponds to 'little endian'
 gcc -m64 -mmacosx-version-min=10.6 -dynamiclib -O3 -DMACHINE_BYTE_ORDER=1 copy*.c -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -o libnativedata.jnilib