Added main() which did not require C++ support. A different main is used based on whether C++ is enabled or disabled.