Upgrade to Scala 2.11.0-M4.

And all the changes need to adapt to the new internal API
of the compiler, and other small things.