support "NODEBUG" flag when building

Set `NODEBUG` macro definition to produce smaller executable.