The album artist for those songs shouldn't be the artists. It should be something like "Various Artists" for example. The track artists would be each actual artists.
Similar with soundtracks. If the album artist is "Soundtrack" then all soundtrack albums will be together under that album artist.
I see no way any software can recognize a compilation album any other way. ID3 tags should support a "Compilation" flag. The above strategy is how I have my mp3s tagged and its works great.