Fix compilation error on Hadoop 1.0.4