Avoid compilation errors with cmake and C++11

Change-Id: I9ddff1f17d2f3d2472b452d60e3e3e6b4c2642c6
Signed-off-by: Tom Flynn <tom.flynn@gmail.com>