Fix compilation with customwidgets