Fixed compile warning when compiling on windows platforms