Changed NDEBUG to DEBUG, remobed Externals, fixes