add a cmake file
avoid overflowing buffer with GL_EXTENSIONS, from ioquake3
fix some uses of delete that should be delete[]
fix some accesses beyond the end of arrays spotted via clang
fix the Ghoul2InfoArray destructor, based on code in JA
fix some return types by matching JA
initial round of amd64 fixes
allow the horrible hack of writing -1 to a pointer to work on amd64
chids in savegames are 32 bits on disk so don't use long
use an int not a long for the version in the roff header