COUCHDB-2225 Enforce that shared libraries can be built by the system

This closes #209

Signed-off-by: Alexander Shorin <kxepal@apache.org>