Define new rules for libpkg versions.

Actually these rules are traditional ones, we just need to follow
them to simplify ABI compatibility logic.