Building with -std=c++11 and added missing includes.