Revert "Don't try to support AMD loaders, it breaks things globally."

This reverts commit b5585aa09aea75cf65d4fe84096a45f4055c7695.
Update build with AMD support