Fix compile error when compiling on OS X

When compiling on OS X the test, ThrottleTest fails because it is unable to retrieve the localhost, this fix will first attempt to retrieve the localhost through getLocalHost() and if it fails will do a reverse lookup allowing it to compile successfully on OS X