Build static library for linking.

Moved operator<< definitions to implementation file and altered
build process to build .a static library.