*: compile fixes for 64-bit build

6 files changed