Compilation on MinGW was failing for the code that reads a list of units from a file. Problem seems to be with using the FILE* data type. Changed to using GIOChannels, provided by GLib, which claim to be a portable way to do buffered reading of files.