Update vendor/requirejs and fix AMD dependencies to avoid circular dependency issues.