migrate Library dir to C++11, use fwd decls
remove (almost) all BOOST_FOREACH calls