rewrite build script to allow compilation against scala 2.10.4 as well as 2.11.2