Fix build id extraction with new RPM packages.

Build id are required for making debug info properly.
However calling ld directly instead of gcc make output not contain the
build id. Fix this calling gcc instead even for linking.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>