updates in cmake build; fixed BUILD_SHARED_LIBS=ON/OFF handling
Merge pull request #66 from snikulov/pr_cmake_updates

updates in cmake build