Remove libpfm dependency.

Resolves #974.