Convert gdbstub.c to unix