IMO those two asserts want to be handled. There are probably more, but these two jumped out at me.
Handling a couple reasonable error cases
Merge branch 'master' of git://github.com/zeromq/erlzmq2 into robustify
Test for invalid thread count
Next time, please consider squashing your commits into one, it will make repo history nicer.