Fix linker flags for OSX