Switched to a AMD build system.

This was done to avoid meteor's weird load system.