- this patch adds various fixes as some of the previous patches break compilations without CONFIG_SMP being set