Fix builds with unspecified hadoop version.