use g_vasprintf (mingw)
Won't try to build model_lib with mingw
Use giochannel instead of FILE*. Mingw..
mingw