lint: Fixup undefined variables and methods