Use __asprintf and __fwprintf instead of asprintf and fwprintf.