Reworked compatibility computation to take program version into account.