Set LDFLAGS after the object files in shared library linking commands

This makes sure that the built libopenh264.so actually links to
libpthread.so.
Merge pull request #1430 from mstorsjo/make-param-reorder

Set LDFLAGS after the object files in shared library linking commands