Patches for Mac OSX support for check_dhcp  [sf#1662706] [#760]