A bunch of work on loading plugins.
Also switched to C++11.