Fix osx libraries (wip)