Fix offline build See: #10465
Merge pull request #833 from qidane/offline-build

Fix offline build See: #10465