Fix AGL_PUBLIC on GCC and Clang.
Compile as C++11 not C99 when using GCC.