Backport Fix #1224: Don't use deprecated reporting methods

(cherry picked from commit c19396933ebfc157b96e530c813c974555c5e186)

Conflicts:

	compiler/src/main/scala/scala/scalajs/compiler/GenJSCode.scala
	compiler/src/main/scala/scala/scalajs/compiler/PrepJSInterop.scala