Update from 5.0.7 to 5.0.8.
While I'm here merge r519240, it fixes build on GCC architectures and also removes base GCC workaround.