change build type to simple and make the cabal version selection a bit more clever