strict dependencies on libraries bundled with ghc, this builds fine with both ghc-8.2 (in my tree, not yet committed) and ghc-8.0 (in the current tree). Tested against ghc-8.0 by jca@, thanks! It may also build again on i386, but I still have to check this.