HDFS-7106: fix compilation warnings.