Small changes to project loader
- Cache the loader properly (use loader object as cache key)
- Fix order of GetLibraryExport call so that it's it calls back
into the loaders before calling the compiler itself.