Fixing some HHVM errors/warnings