Link to libcap to determine process capabilities

This lets us know whether the debugger attach check is failing because
we don't have CAP_SYS_PTRACE or because there really is another
debugger attached already.