Initial C/C++ bindings
build fixes