fix ZTS build