transition to C only code, purging C++
purge of C++, a bug remains in mix.c