Fix remote GDB debugging

-Also works on Android