Fix MSVC compilation
Merge pull request #546 from vitalyster/patch-1

Fix MSVC compilation