Fixing missing checks against BuildInfo#DEBUG, fix issue #217.