Fix C++ builds by removing no-longer-needed type declaration