lib: fix mingw