Fixed header version checks, CXType functions mostly implemented.