import instead of declare onOutOfMemoryError

- fixes an issue where the compiler complains about a
  conflicting onOutOfMemoryError when compiling
  core.exception together with object_.d