GNU C++ pthread compiler option for AIX.

Ref. https://www.ibm.com/developerworks/aix/library/au-gnu.html

Fixes #5999

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>