Typo fix in libscythe.so target, LDFLAGS order fix in all targets.

Fixing the LDFLAGS order issue