Expose set_daemon_mode to client api. Eliminate compiler warning about unused variable in node.cpp.