NGXCBM-2 Don't use libc memory routines in the module
NGXCBM-2 Fix connection initialization