Made PHP fixes specified by Chris for OS X
Merge pull request #17 from jjschwarz/master

Made PHP fixes specified by Chris for OS X