#617 Option generation of main function in generated code
#1188 Added C++ guards, but commented out