This replaces gint with gboolean where applicable in exported
functions.