See #2925:
- Fixed compilation on msys and older compilers.
- Changed to non-fatal error handling for some cases to support Dymola 2014 FMUs.