Avoid compiler warnings about large shifts on 32-bit platforms