extern all symbols when compiling as C++