use pkgconfig for eigen + fix mingw builds