gdb: fix build on darwin