Use a UI event for clearing recents.

This way it builds on Android, and is cross platform too.
Decouple win32 and UI a bit more.
Merge pull request #3672 from unknownbrackets/ui-tweaks

Android buildfix, avoid win32 api in UI