Build fix for Qt, Gtk, and Wx.