fixed compilation for vs2008
Merge pull request #659 from Nerei:master