Unfortunately the fix of the previous commit broke the build because of the existence of non-GUI functions using GUI-only wxWindowID class. This will need to be fixed in a better way later, but for now add the required header back. See https://github.com/wxWidgets/wxWidgets/pull/1815