update build
fix some case issues to build in mono