fix libs to link into tests