[SPARK-2987] - Adjust build system and tests to work with scala 2.11

This patch assumes that we are on akka 2.3.4. So it does not deal with that.