HHVM compatibility

This is subordinated to https://github.com/Masterminds/html5-php/pull/34