More robust OSX native library loading