Extend BT_CHECK_LIB to support using pkg-config to locate modules.