various minor pieces of cleanup
Fix a glitch with signal handling
Workaround a weird glitch in newlib's malloc
Ensure thread safety during window buffer things
revert an accidentally commited makefile change