Add a flag to optionally build test executables

The recent change to build the executables broke a standard "cabal install".
(Due to Keys.hs not existing.)