Fixed upgrade tool to build against current libusb-win32.
Use do {...} while(0) for PLATFORM_FATAL_ERROR() macro.