Remove variadic macro style to support older g++ versions.
Enable C++11 support for older g++ versions.
Fix linker errors in distros with --as-needed GNU linker parameter enabled by default (e.g. Ubuntu).