Fix win32 build

mingw32 doesn't have asprintf