Makefile: don't use the same .o file for static and shared code
Finish benchmark.sh, minor LZ changes based on profiling data