mingw: fix build with autotools