Fixed compile error with ZTS