OSX library loading issues resolved