adapt config to haskell cabal, fix msys issue