Fix a ton of undef warnings with newer Anki