Ferror

Small fixes to enums, stdio, error reporting, and word size

@chathhorn please review