Add module wrapper to support Node, AMD, or browser globals.