[Static Runtime] Fix build issues (#72310)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72310
ghstack-source-id: 148415878
Test Plan: tested build locally
Reviewed By: mikeiovine
Differential Revision: D33995083
fbshipit-source-id: 68a992ad53f9063f906d0b933895c447f7b5fdab
(cherry picked from commit 1c04e71ac5968a2cdeab101f3e9b05d3d283e0ba)