Fix compile error on windows.
Merge pull request #623 from ricnewton/master

Fix compile error on windows.