use c++ version hack in dzlib