Catch exceptions when APPNAME, VERSION, TOP or OUT is not defined.
Same for when not using C or C++.