Updated dconsole api access

Small changes to make it work with latest dconsole, was not compiling.