Misc fixes

- When I fixed the signature of fputc, I missed a few instances, which were crashing
- Make simulator stop on fault when not in cosimulation