Fix ZTS builds