Added G_GNUC_UNUSED to tag functions that may be unused depending on options.