Fixed build for php <5.4