fix compilation with gcc 4.9
Merge pull request #1039 from AntonioBL/git49

fix compilation with gcc 4.9