Burnley boss Vincent Kompany celebrated his birthday with a hard-fought 2-0 victory over Sheffield United.