Port offsetof "fix" from sdk2013.