Fixed compile issue with ZTS