Fix building with ghc 7.4
Keep error information in `extract`