clang says we can't return var with C linkage