makefile: fix build failure on MinGW