[PATCH] libport: Get rid of ffs