Fixed -fsanitize for Pi by making optional.