CBQE-1542 add function to install missing lib

Change-Id: I783877149bde9776fcc4eb95299626b071d41b98
Reviewed-on: http://review.couchbase.org/29378
Reviewed-by: Thuan Nguyen <soccon@gmail.com>
Tested-by: Thuan Nguyen <soccon@gmail.com>