Added Mageia support. Fixed many problems with video sync.