[lld][inputgraph] Fix build failure on Darwin/Windows