fix issues 43, 44, 45

Various cleanups used in the Debian package of duo-unix.