Why not have this as part of the runtime as icalls? This way the linker can properly remove them when not used.