Make route preview code safer
Remove cloudsync headers from src/lib/CMakeLists.txt