Changed OSX linking to static