Fix xmesh for GNU/Linux
Fix xmesh to compile with MinGW