Fix linking on osx (nw)