Improved the checking for libnl3 in configure.ac.

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