Cleaned up the cmake files.
Removed set locale bug from class CloudFactory.