Enable cross compilation

This PR enables the project to build on both Scala 2.10 and 2.11 without changes.