Cross building

Hi Ilya,

doing some late-night coding as well in preparation for wednesday ;)
This PR enables cross-building with Scala 2.11.1 and Scala 2.10.4