Fixing global define/require as they must be defined.