fix C++ bindings library linking