add compatibility with Hadoop 1.1.2