Compile under Windows without warnings.

Signed-off-by: Shannen Saez <shannenlaptop@gmail.com>
Merge pull request #311 from shancat/master

Compile under Windows without warnings.