CP 8320: Initial xs64 commit

Snapshot of xs64 branch based on commit 6c4caf8bf345. Only the files required to
build the sm RPM package are imported.
CP-8320: Add a LGPLv2.1 header to all files.