HDFS-6534. Fix build on macosx: HDFS parts (Binglin Chang via aw)