Resolve integer narrowing and sign mismatch warnings.
Remove extraneous symbol.
Fix forcing to/from bool warnings.
Merge pull request #820 from evoskuil/master

Remove extraneous symbol causing VC/mingw break, fix warnings.