fix customwidgets build on windows