Fix some warnings on windows

-Also two potential bugs (FormatMessageW with char*)
Convert gdbstub.c to unix
Add spinbox for GDB and RDBG ports