Add pkg-config support

Add pkg-config support and test case.  The HAVE_IOCTL_* configure checks needed to be dropped because these `#define's` won't be available to the install headers.  Removing them wasn't a problem because the alternate include path was only needed by RHEL5 systems which are no longer supported.