Fix issues found by golint.