Setting scala versions and some compiler options.