Fix the $(EXEEXT) suffix
Try changing the order libraries appear in lib_LTLIBRARIES