Unify cg and nitech dwin and pstreamchol structures and some changes
to allow clean -Wextra building (size_t fixes and unused parameter stub).