fix API_EXCLUDE_BEGIN/END macro