Remove dependencies to the C++ backend.
fix some warnings