Fix for compilation fail when using MinGW.