Target link flags too.
OSX shared library versioning works.
Now with actual workingness!