replaced gboolean by bool (from mhl/types.h)