Fix compiler error for building without sdformat