Configure sbt to pull scalalib depencencies for cross compile

This commit also introduces and fixes #297 by introducing the
fixClassOf option to the ScalaJS plugin.