Moved all the code for windows under #ifdef WIN32 in order to fix linux build