Allowing of building on Mac 10.9 with clang and c++11 compiler flags.

This patch set allow building on Mac 10.9 with clang and c++11 compiler flags.


Fixed based on your comments.