fix compile error for hadoop CDH 4.4+

Fix the compilation error when set SPARK_HADOOP_VERSION to 2.0.0-cdh4.4.0, That is, the yarn-alpha project should work with hadoop CDH 4.4.0 and later.

Also pass tests on branch-0.9.

Here is jira (thx @srowen reminding): https://issues.apache.org/jira/browse/SPARK-1479