Changes needed for FastCGI on OSX

The rest of the changes have been PRed in hhvm-third-party, @ptarjan would look at those. They must land first.