Adaptation of source code and cmake files for Windows systems