SystemNotifier: fix build on Windows
SearchEditor: fix potential crash