Updated cmake lists to conditionally include std=c++11 for gcc.