Modify cabal file to compile both GUI and terminal versions