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 custom 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.