Fixed OSX linking.