Configured cmake files
Added option for shared/static library build
Set default CMAKE_BUILD_TYPE to Release