Compatibility with CDH4.x

TaskAttemptContext is now an interface.