Normalize main function type