fix linkage: extern -> static