Pass a list to PKG_CHECK_MODULES
Remove unreferenced variable