Fix VC++ build warnings

This PR is a simple PR to fix errors with VC++'s compiler an warnings about conversions from integers to booleans. Otherwise, the build is errorless.