change ordering for shell libs and add linktargets.