netmap: new send/recv API plus master/slave pipe support
lib: sync minor tweaks