fix compiler signedess warnings