Modified to compile with g++ standard library 4.7
Modified to no longer use Clang Standard Library.