Define NDEBUG for Release builds.
Merge updated upstream.