Fixed to generate both header and source

Now works without issue.