Add _TRUNCATE define on zbeacon.c for some mingw compilers