Started work on #1554
Added a script to extract struct sizes and field offsets as well as constant (#define) values.