fix cygwin/sitl build with cmake 3.28.3 (#9787)