osx and linux link differently