CONF_SDL - various fixes
CONF_SDL - unit tests + various fixes