Flush stdout buffer at beginning of main()