[SPARK-4651] Adding -Phadoop-2.4+ to compile Spark with newer versions of Hadoop