Put extern "C" guard around stub table definition. See also same change in Itcl: [http://core.tcl.tk/itcl/info/ddf387cd88]