Relocate zlib detection for fc
Virtualize a few functions in istream to allow them to be overridden in derived classes