Fix most lint warnings and enable linting in build

There are still a couple deprecation warnings that should be fixed by
not using deprecated classes in BoxConnectionManagerBuilder.