Misc. linter fixes (unused variables, missing semicolons, etc.)