having some C/C++ compile problems