fix(compression): import missing errno lib and use correct variable