MAINT: make main a strict prototype in configure checks

removes about 400 lines of warnings from the build logs
Merge pull request #5059 from juliantaylor/config-warn

MAINT: make main a strict prototype in configure checks