bool conversion for windows, too

Change-Id: I38e481ce7d4eeea6679e33640555469cd18d3109