fix Issue 11008 - Allow -main switch even if user-defined main function exists