Implement a GlobalLogFile class that is used to record all logging
messages (DEBUG_MSG and ERROR_MSG macros) to a file if the GVKI_LOG_FILE
is set to a valid file path.

This has been added to aid debugging applications where access to stdin
and stdout is not readily available.
Fix typo caught by clang.