[fix] for xbuild compatiable
[fix] more mono compatibility