Various MSVC warning fixes about truncated 64 bit shifts and const pointers passed...