Nice, I wonder if
kano would be OK bringing those changed upstream.
At least for me, @kano branch of cgminer is the one that I use whenever I build cgminer after CKolivas stopped development.
Hopefully there is only one branch with all the required changes.