Fix compile under MingW