[ SPARK-1812] Adjust build system and tests to work with scala 2.11+ repl port.

I would add a comment here something like:

```
<!-- We add source directories specific to Scala 2.10 and 2.11 since some examples
       work only in one and not the other -->
```