Poco's platform_win32.h for some reason raises a compile-time error if it finds both NDEBUG and _DEBUG to be defined. These control different behaviors and are not mutually exclusive. Poco should not error when both are set.
I think the check and #error can simply be removed.
poco.patch.txt