change CM_BUILDTYPE and CM_EXTRAVERSION,fixed some bugs.