Wrap the library in a function that defines it as a AMD module if loaded in a AMD environment.