c++11 compatibility

getting rid of tr1 deps, but still not fully compatible -- libconfig is
at fault?
-- also trimming some extra whitespace and comments