Reindent the C programs
Update build.sh
Fix some compiler warnings
Fix handling of >< or +- (Fixes #1)

Also use putchar/getchar_unlocked in to-c.