Fixed build failed because of incompatible libzip version

After the commit 3652634dc09bf3d6d533a8c3dc46cd9bd5f6ce4b upgraded libzip, we are required 0.11+ (The version is not updated I proposed another PR for that)

This patch add lipzip version detection and fallback to bundled libzip
when incompatible libzip found.

Closes #3177