HHVM support & compatibility v2

This is lighter solution of #104, without introducing arguments API etc.

ping @milo for review
It doesn't work good. I opened [an issue](https://github.com/facebook/hhvm/issues/3539).