Calculate the size of the structs instead of pointers. Fixes MeeGo bug #15577. timeless: copyright waived+