[GHC] #10096: Top-level ./configure should accept and propagate --with-curses-{includes, libraries} to libraries