Extensions of the Virasoro Algebra Constructed from Kac-Moody Algebras Using Higher Order Casimir Invariants