The compliance module simply can't deal with these situations for now. This feature will be added in a future release, but we do not have a release date for it.
If you add multiple versions of the same software to the compliance module, each installation of each software version will be counted as 1 license "in use". There is no way to tell the compliance module to only count the latest version of the software on each machine.