Fixed compiling on gcc 4.7+

This fixes compiling with gcc 4.7+ on (for example) Ubuntu 14.0.4