compile shared libs in tests instead of passing LIBS=-lz hack