Fixing infinite recursion
Fixing signed vs. unsigned comparision
Fixing m4ri bug with a workaround

Thanks to Axel Kemper for this fix

Reporting to upstream in progress

Fixes #178