fixed generated code to compile with MSVC
Merge pull request #434 from dalange/patch-1

fixed generated code to compile with MSVC