Enabled C++11, -Werror, and -Wall.  Fixed resulting compiler errors.