Fix build on GCC 4.8

Reference: https://bugs.gentoo.org/show_bug.cgi?id=466488
Credits: @Garcia98