Fix printer_serial.cpp compile on windows