Cross-compilation and less mad SBT build

Obviously this should really go to Maven Central, but one step at a time.