hhvm compliance fixes