CheckIncludeFiles: Use modern C declaration for 'main' (#15058)

Otherwise some compilers will incorrectly fail the checks when certain
warning/error flags are enabled.
Merge topic 'CheckIncludeFiles-main-prototype' into next

bf89f910 CheckIncludeFiles: Use modern C declaration for 'main' (#15058)