gethostname() from Zend

See https://github.com/facebook/hhvm/issues/1308