Fixes Zlib error in ruby 2.x