Make some build operations async instead sync.