attempts at some further fixes and improvements
more fixes for struct typedefs; something gets generated!