Maschke's Theorem for Compact Groups