Fix compilation warnings

Hi hackorama,

I fixed compilation warnings, reported by Visual Studio 2010 C++ compiler for both x86 and x86_64 platforms. I will appreciate you, if you integrate these changes into your main branch.

Thanks,
aleffnull