build system tweaks for cabal