Add an option to use the address sanitizer. Also mark some functions to be ignored by asan.