ccanlint: fix usage of unused main parameters in other cases where we add main()