Link libupsclient with libcommon

Fix undefined references related to functions of libcommon. This issue
was reported on Debian: https://bugs.debian.org/731156
(patch from Matthias Klose ; Closes Github issue #73)