Try replacing struct/ends with GNU AS .struct syntax.
Derived from http://forum.osdev.org/viewtopic.php?f=13&t=3483