Fix compiling with MSVC
Merge pull request #189 from ffes/fix-msvc-json

Fix compiling with MSVC