Generalized creation of the global scope from the stdlib and the user source.