More 64-bit fixes (MP) based on commit from ioquake/jedi-academy (jonathangray)