Fix PHP 5.4 build
Merge pull request #74 from remicollet/issue-405

Fix PHP 5.4 build