Set LDFLAGS after the object files in shared library linking commands

This makes sure that the built libopenh264.so actually links to
libpthread.so.

Review at https://rbcommons.com/s/OpenH264/r/861/.