Fix build for gazebo4

should be `GAZEBO_MAJOR_VERSION`