HDFS-5642: simplify platform headers.