Made it build in MinGW.