Updated according to the latest changes in HHVM

Fixes #12
Fixes #13
Fixes #14