Fixed up some bugs in the nanomsg binding

I took a demo from this website and implemented it in Lua-cxx:

http://tim.dysinger.net/posts/2013-09-16-getting-started-with-nanomsg.html

To host the server:

    make run-nanorecv

To host the client:

    make run-nanosend