Restructure the build.

The SCM build is separated into a stand-alone library with its own Makefile.
The data files are moved out of the data directory to allow their Makefile
to be merged with the library Makefile while still ensuring that xxd names
its exports correctly.