Add includes for algorithm.

Fixed compile errors for "error C2039: 'max' : is not a member of 'std'" with Visual Studio 2013 (and perhaps others).
glretrace: For multi-sampling back off the requested # of samples, until success.

Fixes GLX crash.
glretrace: Improved support for GPUs which have GL_ARB_timer_query but not the EXT version.

This also uses ARB query for occlusion as this is an ARB not an EXT
extension.
qapitrace: minor optimization to findCallIndex()

Function continues searching after target call index is found

Noticed that TraceLoader::findCallIndex(int index) continues looking
through the entire list of calls after target call index is found

Fix:
Add a 'break;' after call is found.

Testing:
No real difference in time. Rough test /w 180MB file:

$ ll warzone2100.trace
-rw-r--r-- 1 lllove lllove 180664407 Feb 14 09:58 warzone2100.trace

Selecting the first call (7797067) of 10362 calls in frame 1767

Without change:
$ time qapitrace warzone2100.trace 7797067
real	0m13.495s
user	0m12.592s
sys	0m0.072s

With change:
$ time ../../src/qapitrace warzone2100.trace 7797067
real	0m13.275s
user	0m12.476s
sys	0m0.092s

(time based on my reaction time to kill qapitrace when frame 1767
 is expanded to call# 7797067)

Signed-off-by: Lawrence L Love <lawrencex.l.love@intel.com>
apitrace documentation: add multiple callsets

Documentation update for previous commit:

   apitrace: Allow multiple --calls and/or --frames input options

Signed-off-by: Lawrence L Love <lawrencex.l.love@intel.com>
gltrace: Detect the availability of tr1/memory header.

Instead of trying to guess it.

Should fix issue #224