Fixed MinGW compiling