Target JDK7, use getHostString instead of getHostName, close #672