Fix export AMD

When using AMD, the global `define` function must have a property called `amd`.

Reference: https://github.com/amdjs/amdjs-api/wiki/AMD#wiki-defineAmd.