fix --profile=pprof on newer ubuntus

The --as-needed default for ld would drop -lprofiler.