fix up all p350 errors

finally it now fully builds