fixed compile issues with ZTS