Misc fixes to IBO code to correctly use sizeof(glIndex_t)
OpenGL2: Small optimizations and comments in world VBO creation and surface merging.
OpenGL2: Remove srfTriangle_t, and use glIndex_t instead.
Fix VM FOpenFile( FS_READ ) files seeking twice in FS_Seek
Remove unused variable baseOffset from fsh[]
Support FS_SEEK_END and negative offset for zipped files in FS_Seek

Use FS_SEEK_END in sound code instead of working around it.
If FS_SEEK_SET and going to current position, just return.
Remove old comment that FS_Seek doesn't work on zipped files
Remove function prototypes for non-existant Sys_* DLL functions
Merge branch 'glindex_size_fixes' of https://github.com/inolen/ioq3 into inolen-glindex_size_fixes
Fix flares being invisible after vid_restart

flareCoeff was only set if r_flareCoeff cvar was set as modified.
Cvars are set as modified when created or changed.
Merge remote-tracking branch 'ioquake3/master'

Conflicts:
	code/renderergl2/tr_bsp.c
Make OpenAL buffer management work on OS X

Don't assume we have unlimited OpenAL buffers.
Detach buffers from sources by setting AL_BUFFER to 0. Cannot delete buffers on OS X immediately after alSourceUnqueueBuffers.
Free unprocessed stream and music buffers.
Free unused sfx buffers when sound file exists and fails loading into OpenAL (though I haven't seen it fail).
Fix restoring loop sound position on OS X

The default OpenAL library on OS X errors AL_INVALID_VALUE for AL_SEC_OFFSET if source isn't playing.
Fix cinematics often being silent on OS X

If OpenAL source isn't playing, often what happens is: queued buffers is 0 and processed buffers is non-0.
S_AL_StreamUpdate won't play the steam if queued buffers 0.
So start the stream in S_AL_RawSamples.
Remove unused cvar_t variable cl_trn
Fix comparing unsigned values to < 0 in gl2
Merge remote-tracking branch 'ioquake3/master'
Fix comparing unsigned value to < 0 in gl2 for foliage
Merge remote-tracking branch 'spearmint/master'