Update main.cpp for windows