add mali patches (thanks to cocafe)