Added missing dependency for SDL Fixes #25698

Related to #24142