Fix compiler warnings for MSVC 2010
Fix compiler warnings for MSVC 2008
Merge pull request #43 from istepura/master

Fix compiler warnings for MSVC 2008/2010