Replaced incorrect usage of bool where gboolean was supposed to be used. This fixes problems on Windows.