fixed to compile on windows 8.1