Fix compile errors and now iperf old functionality works with the new changes.