libpacman: Move compatibility definition to the bottom of pacman.h and allow to undef them with PACMAN_NO_COMPAT.
libpacman: Fix progress events numbers.