Function name cannot contain -

When output.library contains a - the generated function name is not
valid.  Replace - with _ to create valid function name.