Functional differential equations on compact manifolds and an approximation theorem