Fix compilation on Hadoop 2.4.x.