PHP 5.3 compatibility
Merge pull request #4 from ikr/master

PHP 5.3 compatibility