haskell-generic-builder: enable pre-/post hooks and configureFlags
haskell-generic-builder: add support for pkgconfig (and other build fixes)
minor build fix