fix static linking dependency bloat with cancellation