windows: fix build on MinGW