replace some redeclaration with the respective imports
remove "pure" from onOutOfMemoryError as for all the redeclarations (see bug 11461)