Fixed compiler errors in routing library when an old glibc is used.

Review: https://reviews.apache.org/r/21822
Returned false in link::remove() if NLE_NODEV is received.

Review: https://reviews.apache.org/r/21823