Fix various deprecation warnings, set scalaVersion to 2.11