Fix VC warnings about unary minus to an unsigned type.