move the inclusion of config.h before the inclusion of the system headers. From 2.8, libupsclient needs `HAVE_STDINT_H` defined before including upsclient.h.
correct types of integer variables passed as pointers to libupsclient functions. In 2.8, libupsclient changed the types of certain function parameters.