Distribution-specific Apache functions ported for use on OS X.