Differentiability implies Lipschitz continuity
From differentiability at $x_0$, you will find an $L_1$ such that $| f(x)-f(x_0) |\leq L_1| x-x_0|$ for $|x-x_0| < \delta$. Since $f$ is continuous on a compact set, $|f(x)|_{\infty} < \infty$. This will give you an $L_2$ such that $| f(x)-f(x_0) |\leq L_2| x-x_0|$ for $|x-x_0| \geq \delta$. Take $L = \max \{L_1, L_2\}$.