Keep using cotire for CMake versions older than 3.16, or when user specifies wxBUILD_PRECOMP=COTIRE. The scintilla headers need to be specified for target_precompile_headers to work. Enable it when the target has at least 2 source files (same as cotire does).