gdb: Fix lm32 simulator's UART code. Builds on MinGW.