Update for mangeia support

Hello 

Here is a pull request to support mageia