Fix requirejs for library build by wrapping in a anonymous function. Now loads correctly minified version.