Luna M7 compatibility changes

https://github.com/dotta/scala-ide/pull/1 rebased on https://github.com/scala-ide/scala-ide/tree/platform/luna