Clean up GHC 7.8 warnings & remove TemplateHaskell usage

remove TemplateHaskell usage and avoid deprecated functions from System.Cmd and attoparsec