Change malloc to pcalloc with nginx pool (fixes #10)