ETM: fix build issue on MinGW.