Define NDEBUG in optimized builds.

Means that we will not check assert()s introduced in recent commits in
optimized builds.