Generate a loader

Omit KHR (due to recent changes to the specification, this may not work anymore)