Flush stdout to make printf work in CLion