gcc: Ensure libraries get installed into lib

By default gcc installs 64bit libraries into lib64, we change it here
to install into lib instead.
gcc: Record some information after a build

Record lookup paths that gcc is built with so user can look up its
behaviour if needed.