Fix builds when PHP without ZTS