build: Pass --fno-partial-inlining to third-party when appropriate