Initialize DefinitionsBuilder after preloading.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Properly look up constants in parent scopes.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>