HADOOP-10577. Native Hadoop Client: Fix some minor error and compile on macosx (Binglin Chang)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HADOOP-10388@1593181 13f79535-47bb-0310-9956-ffa450edef68