JDK6-compatible exception emitter. Fixes #16.