moved setProgramNameForStackTrace into platform.cpp rather than main.cpp