c99 offsetof fix