Build static and shared libs in Makefile

I was trying to create an AUR package for arch and realized that currently the Makefile does not build any libraries. I think this is what you were going for with the `dist` rule.