Spell LD_LIBS correctly
set msg_control to NULL  and controllen to 0.
fix tests.