This patch help me to build goffice under MSys2 (cygwin-like) on Windows 7 0001-win32-fix-def-export.patch