add further wrappings to nkvd.c; nearly works with alpine now