Remove 'secure functions' warnings from MSVC build

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Remove win-styled 'safe functions'

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Merge branch 'master' of github.com:nanomsg/nanomsg

Conflicts:
	src/core/global.c
double #include <int.h>
Fix double nn_chunkref_term(&msg.hdr)
Fix MSVC compilation errors.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Merge pull request #223 from pipul/dev-20140322

some small fix