compile error & code spelling error

1.fix compile error on win32
2.modify spelling error