Wraps any library/function/object within an AMD-compliant definition if possible, otherwise using an internal `require` and `define`