fixed extern C duplicates