newcpu: compilation fixes and warning reductions