Template fixes in /cg/io. Should compile now.