WIP: fix "TEXT not defined" error on win32
WIP: don't create peripheral_data folder too early
WIP: removal of CGUISettings