Support for PHP 5.3+ and HHVM

closes kohana/core#504