Fix dwarf_producer_init check

dwarf_producer_init takes 10 arguments, but the checking code only
supplied 5, meaning that the `const char*` check would always fail,
producing the wrong information and preventing compilation.