[Bug 1031322] libcamgm fails to build with GCC 7