fix Spark compilation is broken with the latest hadoop-2.4.0 release