Support for MacOS and Linux for FMI-1.0 only, ported from the fmusdk git repo, based on mtiller's Linux port.