Add mg_findext (thanks to bulk88 for the implementation)