try to fix mingw linker error