Jdk7 osx

There are build and testing issues when using JDK7 on Mac OS X due to bug described here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7180557 Picking the commits on this branch should resolve those. Introduced New Static Methods in NetUtils to getLocalHostaName and  Address and Used them at various places where InetAddress.getLocalHost().getHostAddress() was being used