Set with_SDL=yes only when building the client to keep "SDL" out of the version string on server-only builds.
Use const_cast<> to suppress a const qualifier warning.
Avoid potential optimization trouble by accessing only the non-const view of the object.