clarify VC++ required version
fix VC++ build
fix stackoverflow by calling the correct overload
test scanned token contents
detect closing brace on outmost scope as a syntax error instead of treating it like the end of file
sanitize some formatting