[compress] split check_lib_init into 2 functions
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>