Support for PHP 5.4+ and HHVM

Ref kohana/core#505