Analyze file's project to prepare for linking

Fixes #2133
@dinhviethoa @devoncarew 

- Prepares a project for linking (`prepareForLinking()`) on startup / opening of a file in a project not yet analyzed by creating a `ProjectAnalyzer` so that linking can happen immediately.