build: fix compilation warning on MinGW-w64