Fixes #59 errors with PHP 5.3