SERVER-10026 syntactic code fixes for Windows

- a struct is not a class
- "ERROR" is a macro on Windows :(