generate DTO source file and fix generate DTO headers