otherwise build failed if has -DNDEBUG thanks -- Z. Liu