Add flags and libraries to src/CMakeLists.txt