Added missing "extern C{}"s