Fix linking of motion and rotate modules

142e288b178716 set LDFLAGS conditionally
Be sure that it is always set and concatenate the DARWIN flags
Fix build with --disable-sout

Broken in 79ced312c75548037d641153bf3e7c092b71e3f8