Fix the /W4 C4245 warnings: signed/unsigned mismatch.
AppSettings: Move some backward compatibility code to UpdateSettings()