Fix incorrect SQL values for boolean fields

fixes #8100
Build fix for Windows

refs #7805