gltrace: Detect the availability of tr1/memory header.

Instead of trying to guess it.

Should fix issue #224