Add a custom "main" declaration.