Added missing libraries for static linking on OSX