Try agan: Use gnu99 instead of XOPEN2K to get pthread extras.