Templates for platform main.cpp