mesa: fix signed/unsigned comparison warnings