remove unneeded architectures and platforms