Another OSX library fix attempt