The spin library should not be shimmed in your config. From the spin.js source code:
if (typeof define == 'function' && define.amd)
define(function() { return Spinner })
else
window.Spinner = Spinner
It is already defined as a module here at the end, and window.Spinner is not created as a window object (which is why it shouldn't be shimmed)