HHVM Compatibility - Core and Plugins

Fixes several issues related to class resolution (reported issue
facebook/hhvm#1340)
Fixes func_get_args() call (reported issue facebook/hhvm#1027)