use g++ to link the module in build_module if c++ is used.