Changed native library file type from jnilib to dylib on OS X. This is compatible with System.mapLibraryName on Java 7+.