changes for running on Hadoop 2.4.0