Add build time option to enable / disable support for the JIT.
Fix segfault with --trace-cycles.
Fix build when DEBUG_JIT is turned on.