Add config system base. Other misc shit (shut up some warnings etc)