fix compilation with gcc 4.9

Tested under Windows 8.1 (MinGW-W64 i686-posix-dwarf-rev2) and Linux Mint 17