bug fix; change sequence of input to ld. and optimize libs to LinuxMint from openSUSE