libthread_db depends on libc but since unresolved symbols were allowed in the makefile this problem was never realized until gdbserver tried to link with it, failing in the runtime. Change-Id: If2ee319a2503c81abf3010829444f920c7c0c227