Fixed compilation on VC2008

As I mentioned in #566