Fixed compile errors like "ISO C++ forbids declaration of 'XXX' with no type".