Add support for crosscompiling on scala 2.9/2.10