fixed issue with C++ linker