Add support for gprof.

But does not work well for gccgo yet...