Rework src/CMakeLists.txt: set dev. flags after building bundled libs