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)
Merge pull request #784 from franckstauffer/fix

HHVM Compatibility - Core and Plugins