SI-6896, spurious warning with overloaded main.

Make sure there's no legit main signature before issuing
any warnings about missing main methods.
Merge pull request #1835 from paulp/issue/6896

SI-6896, spurious warning with overloaded main.