Add xmesh example, fix vertex-array compile error on mingw