Fix missing extern (C)