Don't link module LIBS to jimsh/libjim

Some libraries are only required for specific dynamic modules, so don't
include them when linking jimsh or libjim.so

Reported-by: Stuart Cassoff
Signed-off-by: Steve Bennett <steveb@workware.net.au>