Adjusted CMakeLists for DLL build (the default), Added option to make a static build