Fixed issues in Cmake configurations.