haiku_repo: Add repo_add_haiku_package_info()

Similar to repo_add_haiku_package() but takes a BPackageInfo instead of
the package file path. C++ only.
selection.h: Make C++ safe