Merge pull request #337 from hwhw/master

add missing require for defining DEBUG in ConfigDialog