double #include <int.h>
Fix double nn_chunkref_term(&msg.hdr)
Merge pull request #223 from pipul/dev-20140322

some small fix