Initialize icalls before exceptions.

This commit licensed as MIT/X11.
Merge pull request #865 from madewokherd/icallinit

Initialize icalls before exceptions.