Fix compilation for Lite builds.
Fix warnings about uninitialized values.
Options Dialog: save right after pressing Apply

Fixes #2373