Fix linking in OSX solution