mesa/gallium: add FFS_DEFINED to protect ffs() from multiple definitions