This PR ensures consistent usage of the "Debug" build configuration when depends are built with DEBUG=1.
DEBUG=1
For more details, please refer to this discussion.