bug #1245: fix compilation with msvc
2 files changed