bugfix: fixed some new warnings when using Microsft's C compiler. thanks Edwin Cleton for the patch.