CPPFLAGS for NDEBUG macro not LDFLAGS.

Include debug flags when building tests.