Fixed build failed because of incompatible libzip version

Summary: 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

Closes #3178
Created from: https://github.com/facebook/hhvm/pull/3178

Reviewed By: @ptarjan

Differential Revision: D1432747