libmal: Fixed to work with latest changes in MAL