Compatible with facebook HHVM 3.1

This patch to make HTML5 compatible with HHVM contains also workaround to avoid this https://github.com/facebook/hhvm/issues/2962
I'm not all that familiar with HHVM. What is `systemlib.phpreflection_hni` and why is it blacklisted but not part of the repo?