Clean up the GetDefaultRoute function for Mac.