Move offsetof to osdep.h, remove local defintions.