let test program can build successfully

only build openRTSP and testOnDemandRTSPServer
implement virtual function