Relax unix dependency on mingw32