[TIMOB-12169] Create build log with compilation

Resolves https://jira.appcelerator.org/browse/TIMOB-12169
That's because `cli.argv.platform` is not available during the "config()" phase (unless you specified `--platform` instead of `-p`). You will be able to access it during the validate phase. You can also access it from the "platform" option callback. We should wire up the log shim during the "config()" phase and buffer all logs until the "validate()" phase where you'll have access to everything and you can flush the buffers.