First pass at adding ConsoleApp to GCC. Needs further refactoring & better error handling instead of EnvironmentExit