Fix the way compatible versions are calculated

The CompatibleAppReleaseId is now considered to be the oldest version
with which an release is compatible. It is the same as the compat
version for add-ins.