Update installation for Ubuntu 12.04.
Update todo list and readme.
Add installation instruction reference in documentation.
Fixing Coverity discovered issues.

Clang related workaround and restoring the state of the stream.