Add fPIC flag to CMakeLists.
Add newlines.
Merge pull request #1 from riga/master

Add fPIC compile flag and fix warnings.