chg: structs.h again usable for C and C++
Fix BS problem of gfanlib handling
fix: cannot use class in C files