Fixes to compile under windows
I'm currently working on running DPsim (including parsing CIM files) under Windows and fixed these issues that prevented the CIM parser from compiling with Visual Studio. I guess this is the proper place to put the fixes (since they all affect code from the patches). These few lines could also be directly changed in the main repo so we don't have to run the whole toolchain again.