Another proof: Let $f: X \to X$ be a continuous function on (non-empty) compact and sequentialy compact topological space. Then we can define $X_0 = X$, $X_{n + 1} = f[X_n]$, $X' = \bigcap_{n < ω} X_n$. $X'$ is non-empty compact space, since it's an intersection of decreasing sequence of compacts. By sequential compactness $f: X' \to X'$ is onto. (For $x ∈ X'$ we can choose $x_n ∈ X_n$ such that $f(x_n) = x$, there is convergent subsequence $x_{n_k} \to y ∈ X'$ so $f(x_{n_k}) = x \to f(y)$ so $x = f(y)$.) Also for any $x ∈ X$ we can define $x_0 = x$, $x_{n + 1} = x_n$. Then $x_n \to X'$ in the sense that for any open $U ⊇ X'$, $x_n$ is eventually in $U$. (This is by the fact, that $x_n$ is eventually in any $X_n$ and by compactness.)
In our case ($X = M$) we have that $f: X' \to X'$ is homeomorphism and for any $x ∈ X$ $d(x_n, X') \to 0$ but also $d(f(x), X') = d(f(x), f[X']) = d(x, X')$ so $d(x_n, X')$ is constant and hence zero, so $x ∈ X'$.