Support for SSP and FORTIFY_SOURCE by default

Correct errors related to FORTIFY_SOURCE checks.
Drop and re-add handle during curl multi cleanup.
Always allocate the json attribute so that it gets deallocated properly (as we use the "(null)" translation for NULL
strings anyway.