Fix mac build by using the same warning for clang as gcc, namely -Wno-invalid-offsetof