CMake build refactored
added runtime depenencies