cleanup cmake to be ready for ubuntu compilation