Add support for compiling with -std=c++11.

shared_pointer no longer has an implicit operator bool(). Instead, you must explicitly convert to bool or call ".get() != NULL"