cmake: Silence a few MSVC warnings when building with ninja.
cli: Fix operation order.

I don't suppose this gets much testing, as long negative integers are
probably rare.

Warned by MSVC.
gui: Remove unused members.

Warned by clang.