Merge pull request #43 from networkteam/php53-compatible

[BUGFIX] Make PHP 5.3 compatible