if(WIN32) guard is missed for many projects in ROS2

Then it’s better to make a model in ROS2’s core pojects, so that when people are porting other projects could always have right samples.