fixes bug 888197 and followup for bug 891815 - trunacte buildid correctl...

...y, add new platform codes, filter out non-unique platform codes