Fixes Issue 9723 - Add -main switch to generate stub main() function.