Fix libpfm linkage.