Include stddef.h to avoid a redefinition problem with offsetof(s,m). Remove wchar_t typedef. This is a native type is MSVC10 and should be appropriately defined with the inclusion of stddef.h in earlier versions.