Remove usages of TemplateHaskell from main executable

* This will allow building on platforms like arm that do not support ghci
* Cleanup unused dependencies