COMP: Memory leak, style and test length

1) Repair memory leak by deleting tempDir.
2) Add std:: to cerr/cout/endl
3) Reduce the number of frames to write. Some platforms are timing out.

Change-Id: Ia25636a2326bb3fa617a68adf3ff9e57e02c1c65
Merge topic 'Valgrind_TestOggTheoraWriter' into master

daced27d COMP: Memory leak, style and test length