Fix pow2 to work on INT_MIN.