Cleaned up cmake files for cross platform compillation