Fix PHP MapScript static build on OSX