replace stdbool with gboolean