Make CMakeLists.txt build rsd properly.