lib/portableproplib: fixes to allow building with NDEBUG (assert()s disabled).
Add NDEBUG to CPPFLAGS if --enable-debug is unset.