Fix compiling under Visual C++