Made all libraries SHARED. This fits the Debian build practices,
and also helps with some circular dependencies that remain to be
cleaned up.
In this patch we also identified a set of .c file that have a main
function, and therefore must be taken out of the libraries and put
into executables.
Matched to the list of source files that are reported via a native
fis-gtm build in the same 64 bits platform. At these point there are
only three .c files that need to be included in the build process.