fixed HHVM incompatibilities