Patch 1

I have no idea exactly how OSX works. So compiling works, but linking not?
I changed the linking flags, can you try it again?