Fix externals

This is a quick fix.
- Even externals functions cannot be defined in the loader.
- The loader is only responsible to load the right files. It has no access whatsoever to the api.