Fix pkg_object_iter not existing
Properly increment references where needed
Remove deprecated option:

Global version of:
- PACKAGESITE
- MIRROR_TYPE
- PUBKEY
Cleanup the build time settable (macros) options