Add exporting to global if AMD not being used