auto link mmseg's debug|release version