[enh] Issue 11008 - Allow -main switch even if user-defined main function exists

http://d.puremagic.com/issues/show_bug.cgi?id=11008