import instead of declare onOutOfMemoryError

- fixes an issue where the compiler complains about a
  conflicting onOutOfMemoryError when compiling
  core.exception together with object_.d
Merge pull request #995 from MartinNowak/onOutOfMemoryError

import instead of declare onOutOfMemoryError