fix glog on mavericks

Two patches are applied:
- Since glog has not yet released a a version 0.3.4, we manually apply a
  a patch that mirrors the following changeset:
  https://code.google.com/p/google-glog/source/detail?r=134
  This patch cleans up the way of determining which logging includes
  need to be included (prefixed, etc).
- A patch making sure we are only including tr1 prefixed stuff
  and slist on when using libc++.

The first patch can likely be removed when upstream releases a new
version.

Upstream is aware of the second issue:
https://code.google.com/p/google-glog/issues/detail?id=121