load extensions in builtin trap

ensures `get_ipython` et al. are available.
Merge pull request #3285 from minrk/extension-builtins

load extensions in builtin trap