charon-nm: Port to libnm