Apply printf bug workaround, implement setjmp and longjmp for arm

- Implement workaround for printf errors with Linux host builds. (does this break on OS X? I can't test this.)
- Implement basic setjmp and longjmp functions for arm