fix ZTS compile error