Update CMakeLists.txt

add -ldl -lpthread in libopenrave