fixed a windows specific definition in main.cpp