Autoconf cleanups

This is nearly identical to https://github.com/nark/libwired/pull/2 except for the Wire client rather than libwired.