fixing error cases
some fix. Still need to support offsetof on anonymous struct/union members