C++11 fixes encountered during a FreeBSD10 compile

- Fixes std::shared_ptr and boost::shared_ptr ambiguity compiler errors when
compiling with c++11
- Fixes a problem when compiling scribe on FreeBSD 10 with default
settings (using clang 3.3)