New index builder for pkg_* bulks

Reimplement in plain C the make_index to compute index on pkg_* bulks.
This version is a lot faster than the old awk version.
Keep the old make_index.awk until we are 100% sure of the correctness of make_index

Submitted by:	David Demelier <demelier.david@gmail.com>