A couple compiler warning fixes, plus a couple other fixes extracted out of my ir3/sched-tuning branch