Replaced printf with __mingw_printf to avoid strange crushes