Fixed compilation issues with clang.
Added 'ui_events' logging option.