Jimmy McIlroy given freedom of Burnley