fix build for php 5.5