Fix compilation for MinGW