Some C++ 11 rewrites of useful stuff from TnFOX (http://www.nedprod.com/TnFOX/)