Use global static variables to store protocol version
s_version is used only to initialize a global so there is no point for storing protocol version in a static member field and use funky syntax in the cpp file to initialize it. This change also simplifies the code.