Fix some small issues that allow JIT to compile.