added support for '-DNDEBUG' in the library