fixed bug in NN.Recv and now poll works under linux