fixes bug 888197 and followup for bug 891815 - trunacte buildid correctly, add new platform codes, filter out non-unique platform codes