Added checks for existance of cmake and pkg-config during installation