Fix build errors in windows.
Merge pull request #1 from dre1080/master

Fix build errors in windows.