Fix compilation issues for PHP 5.5

See #60