Enable usage of AddressSanitizer to check Jansson

This is just some ifdefs to disable masking trick if build with AddressSanitizer.
I can make modifications for makefiles if you tell me the right way that Jansson uses for such things.