Use this for win64 still not gonna work right in vs2010 though.
64-bit: fix a whole load of "error: cast from x to 'int' loses precision"

http://stackoverflow.com/questions/2024895/how-should-i-handle-cast-from-void-to-int-loses-precision-when-compiling

In 32bits, an int (which is a 32bit integer) will hold a pointer value.

When you move to 64bit, you can no longer store a pointer in an int - it isn't large enough to hold a 64bit pointer. The intptr_t type is designed for this.
Merge pull request #307 from archSeer/master

64-bit: fix a whole load of "error: cast from x to 'int' loses precision"
Merged MP's changes to give cmd to SP plus some SP specific changes:
'health' 'force' 'ammo' 'batteries' can all give amounts.
'eweaps' doesn't happen on give all now.
Health is now clamped 1..max
Armor is now clamped 0..maxhealth
Force is now clamped 0..100
Ammo is clamped -1...999 (-1 signifies giving each type its max ammo)
'ammo' without an amount argument now gives 999 instead of max per-ammo type
Batteries is now clamped 0..2500
Forgot to add Com_Clampi function to SP.
64-bit: more pointer precision loss fixes.

Compilation now succeeds on x64 Arch Linux.
Merge pull request #310 from archSeer/master

64-bit pointer precision loss fix
64bit pointer cast fix for debug builds
Merge pull request #311 from archSeer/master

64 bit fix for debug builds
Add pure status to getinfo.
Added icon files for OSX

Still need to set up the application bundles etc.
Use size_t for FOFS in SP not intptr_t.
Use offsetof in offset functions.
The old macros looked crazy and they basically used the same code
used in the offsetof() definition inside ANSI C. Compilers may provide
even more optimized versions. http://en.wikipedia.org/wiki/Offsetof
Merge pull request #314 from archSeer/master

Use offsetof in offset functions.
More offset macros in need of a change
Merge pull request #315 from archSeer/master

offset macros
Fixed incorrect size parameter for Q_vsnprintf in AI_BobaFett.cpp in Boba_Printf.
Use full buffer size for va in MP and SP rather than -1.
Don't use memset on a char pointer, its bad.
Move NULL_HANDLE & friends to q_common.h. Fix warnings by using
NULL_HANDLE instead of NULL.
Merge pull request #316 from archSeer/master

NULL_HANDLE & friends