dump-ast: use a C file extension for -std=c98/c99

The clang compiler restricts the -std=... values based on the file
extension. Therefore, to use -std=c98 or -std=c99 with standard
input (via unsaved files), a C file extension is needed.