improved CTC1 and changed building way for win32.