add build options to makefile to generate libcalccmd x86 and x86_64

libcalccmd should later be moved to separate project, maybe as a git submodule
the idea is that calccmd then also depends on it, in order to make it easier. Due to
the current design decisions and implementation I think is best for it to remain attached,
reason being that the API is very likely to break, and we don't want to have the first version
of the library start being used by other projects and break right on next iteration.

This adds both static and shared library support