If supported, add -init and -fini flags to the linker invocation.