Proper fix for building dialogs sample for CMake. See https://github.com/wxWidgets/wxWidgets/pull/934