Mark VLC_PUBLIC_API as extern "C" when using C++.