SPARK-3039: Allow spark to be built using avro-mapred for hadoop2