fix compile for hadoop 2