Ignore repeated loads of the same archive (#8942)
Include LD_OPTS when building the RTS shared libs