Fix building without optional libraries
Even if you specify i.e. WITH_BZIP2=NO, it will detect and try to use the library regardless. This makes a minimal build of KArchive viable, and shouldn't affect a default build (where these are to be enabled by default).