D meson branching ratios and hadronic charm production cross sections