Fix mobile builds in the latest Tasks change.