Added compatibility with PHP 5.4 and HHVM 3.0