Fix compiler to recognize consts needing ptf. Fix textio.