use offsetof to get global_context member succeed