close several gcc 4.1 sign comp warnings