make PopupColorSelector compatible with wxWidgets-2.8