Made changes so that it compiles on windows. With MinGW