c++ backend: fixed __open__