Added timeout for zmq_lcm_sub.cpp and check return value of recv