Fix MKL builds on Ubuntu (#50212)
Summary:
This fixes https://github.com/pytorch/pytorch/issues/50211
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50212
Reviewed By: janeyx99
Differential Revision: D25850876
Pulled By: walterddr
fbshipit-source-id: be138db3ae370c45f5fbf3af486cf8b32518df87