dbus: fix write() compilation error