(OSX) Fix linking with Mavericks