Modified header to support both C++ and C plugins