add threaded ghc option to test build