Fix for compiling php 5.3.X