build errors for php 4