Removed some CMake switches which are no longer used.