Fixed compile failed with ZTS.