php: fix build on darwin