Core: renamed offsetof to dnet_offsetof.