fix compilation + add a qsettings