Fix infinite parsing when loading MACH0 files

- Reenable some mouse enabled ansi sequences
Fix some coverity issues