TYPE can be specified from the command line

TYPE can be specified from the command line, since we need to build both static and shared libs