misc/pprof: work with either LWP::UserAgent or curl

Use either LWP::UserAgent or curl to make HTTP requests so it
works on Windows (most Perl distros include LWP::UserAgent),
and also on OS X (whose Perl at least sometimes doesn't
include LWP::UserAgent).

Fixes issue 6273

R=golang-dev, alex.brainman, cldorian
CC=golang-dev
https://codereview.appspot.com/13330044