try to fix linking in osx