compilation for VS2008
fixed some warnings
Merge pull request #1810 from Nerei:2.4