On the differentiability of first integrals of two dimensional flows