Fixed compilation on VC2008
Merge pull request #574 from tonibm19/patch-1

Fixed compilation on VC2008