Scattering lengths of Nambu-Goldstone bosons off D mesons and dynamically generated heavy-light mesons