compile mmseg.so for multiple platforms