Scala 2.11 cross build support

Cross building now works for Scala 2.11.