build system: Fix yet another issue with the detection of libupsclient.