Fix signedness warnings when building on OS X 10.5