Better duplicate lib handling, Better menu

Sort out duplicate library dependencies instead of just overwritting
them with "-f" and small changes to menu behavior.