fix DEBUG_WITH_TYPE to build without warnings in non-debug builds