Fix compilation for ZTS-enables PHP