Fix compress support and prevent a segfault
12 files changed