cleanup of C source