Fix std::cout not working on windows