Fixed C++11 problems with eclipse. Also, re-formatted files right after.