Fix static build on OSX 10.9.