Define NDEBUG in release/small mode.

We should enable assert() in debug mode only.
It is already implemented in cmake script.