fix VS warnings on 64-bit compile