Improve the libnl checks, also checking for the required types