ghc-head: fix configure phase to make sure the compiler knows how to use gmp properly

Start with version 7.9 of the compiler, the path to the gmp library must
now be passed to the top-level configure script.