Added optimization flags to CMakeLists.txt ; removed include to assert.h in graphhost.c ; replaced assertion with equivalent expression in ThreadImpl.cpp because assertions don't link correctly when run on the robot