fixed mesh.cpp and mesh.hpp for windows support