Fix install-headers target and move to top-level Makefile.