OSX library fix attempt