mostly ioquake3 patches