Correct trivial format warnings.
Ignore backups.
Add awfully convoluted code for writing to stderr.

Taken from Ubuntu compiler flag page code example on ignoring the
return code of write:

https://wiki.ubuntu.com/ToolChain/CompilerFlags?action=show&redirect=CompilerFlags