Support GCC/G++ v6.2.0
Fixes submitted: r4656
I installed Ubuntu 16.10 on my laptop today and it arrived with GCC 6.2.0. Samples won't compile nor link. The build flag
GCCFLAGS=-std=gnu++98 fixes this.
I've update the project build files for CMake and autotools.
GCC 6.2.0 also emits a couple of warnings and I've tweaked the code appropriately to calm him down.