Fixed build failed because of imcompatible version of libzip

This add lipzip version detection and fallback to bundled libzip
when incompatible libzip found.

Closes #3177