Fixed compilation problems on GCC 4.8 systems, such as Arch Linux 2013.04. Fixes issue #941.